import React, {Component} from 'react';
// import qs from "querystring";
class Detail extends Component {
  render() {
    // 接受路由传递的params参数
    // const { id,title,content  } = qs.parse(this.props.location.search.slice(1));
    const { id,title,content  } = this.props.location.state;
    return (
      <div>
        <ul>
          <li>ID: { id } </li>
          <li>title:  { title } </li>
          <li>content: { content } </li>
        </ul>

      </div>
    );
  }
}

export default Detail;